home *** CD-ROM | disk | FTP | other *** search
-
-
-
- iiiiffffllllTTTTiiiilllleeee((((3333)))) IIIImmmmaaaaggggeeee FFFFoooorrrrmmmmaaaatttt LLLLiiiibbbbrrrraaaarrrryyyy CCCC++++++++ RRRReeeeffffeeeerrrreeeennnncccceeee MMMMaaaannnnuuuuaaaallll iiiiffffllllTTTTiiiilllleeee((((3333))))
-
-
-
- NNNNAAAAMMMMEEEE
- iiiiffffllllTTTTiiiilllleeee2222DDDD - defines a simple 2-D rectangle
-
- IIIINNNNHHHHEEEERRRRIIIITTTTSSSS FFFFRRRROOOOMMMM
- This is a base class and therefore has no inheritance.
-
- HHHHEEEEAAAADDDDEEEERRRR FFFFIIIILLLLEEEE
- #include <ifl/iflTile.h>
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- This class is used to describe rectangles (tiles). It is mostly used to
- group together the four values describing the origin (_x,_y) and size
- (_n_x,_n_y,) of a rectangle in a convenient way.
-
- This is a template class that can be used with any scalar data type; e.g,
- use iiiiffffllllTTTTiiiilllleeee2222DDDD<<<<iiiinnnntttt>>>>() to construct a 2D integer tile and
- iiiiffffllllTTTTiiiilllleeee2222DDDD<<<<ffffllllooooaaaatttt>>>>() for a 2D-float tile.
-
- The following is an example on how to use a 2D integer tile. iflTile
- object can be declared in the following way:
-
- // unitialized
- iflTile2D<int> tile;
-
- // initialized
- iflTile2D<int> tile(xStart, yStart, xSize, ySize);
- iflTile2D<int> tile(tileA, tileB);
-
-
- A useful function, ccccoooonnnnttttaaaaiiiinnnnssss(), is provided that can be used to determine
- if this tile fully contains another. An overloaded version allows
- maximum (_x,_y) bounds to be specified that are use to clip the other tile;
- this version is used where a page might extend beyond the edge of an
- image. Also two operators == and != are provided to find out whether or
- not two tiles are the same.
-
- CCCCLLLLAAAASSSSSSSS MMMMEEEEMMMMBBBBEEEERRRR FFFFUUUUNNNNCCCCTTTTIIIIOOOONNNN SSSSUUUUMMMMMMMMAAAARRRRYYYY
- CCCCoooonnnnssssttttrrrruuuuccccttttoooorrrrssss
-
- iflTile2D<type>()
-
- iflTile2D<type>(type X, type Y, type nX, type nY)
-
- iflTile2D<type>(const iflTile2D& that)
-
- iflTile2D<type>(const iflTile2D<type>& a, const iflTile2D<type>& b)
- iflTile2D<type>(const iflTile2D<type>& a, const iflTile2D<type>& b,
- const iflTile2D<type>& c)
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- iiiiffffllllTTTTiiiilllleeee((((3333)))) IIIImmmmaaaaggggeeee FFFFoooorrrrmmmmaaaatttt LLLLiiiibbbbrrrraaaarrrryyyy CCCC++++++++ RRRReeeeffffeeeerrrreeeennnncccceeee MMMMaaaannnnuuuuaaaallll iiiiffffllllTTTTiiiilllleeee((((3333))))
-
-
-
- IIIInnnniiiittttiiiiaaaalllliiiizzzzaaaattttiiiioooonnnn
-
- iflTile2D<type>& init(type X, type Y, type Nx, type Ny)
- iflTile2D<type>& init(const iflTile2D<type>& tile)
-
-
- IIIInnnntttteeeerrrrsssseeeeccccttttiiiioooonnnn
-
- iflTile2D<type>& intersect(const iflTile2D<type>& a,
- const iflTile2D<type>& b)
- iflTile2D<type>& intersect(const iflTile2D<type>& a,
- const iflTile2D<type>& b,
- const iflTile2D<type>& c)
-
-
- BBBBoooouuuunnnnddddiiiinnnngggg bbbbooooxxxx
-
- iflTile2D<type>& boundingBox(const iflTile2D<type>& a,
- const iflTile2D<type>& b)
- iflTile2D<type>& boundingBox(const iflTile2D<type>& a,
- const iflTile2D<type>& b,
- const iflTile2D<type>& c)
-
-
- CCCChhhheeeecccckkkkiiiinnnngggg ffffoooorrrr ccccoooonnnnttttaaaaiiiinnnnmmmmeeeennnntttt
-
- int contains(type X, type Y) const
- int contains(const iflTile2D<type>& tile) const
- int contains(const iflTile2D<type>& tile,
- type xMax, type yMax) const
-
-
- EEEEqqqquuuuaaaalllliiiittttyyyy ooooppppeeeerrrraaaattttoooorrrrssss
-
- int operator==(const iflTile2D<type>& tile) const
- int operator!=(const iflTile2D<type>& tile) const
-
-
- OOOOffffffffsssseeeettttttttiiiinnnngggg aaaannnndddd ggggrrrroooowwwwiiiinnnngggg
-
- void operator+=(const iflXY<type>& offset)
- void operator-=(const iflXY<type>& offset)
- void grow(const iflXY<type>& delta)
- void shrink(const iflXY<type>& delta)
-
-
- FFFFUUUUNNNNCCCCTTTTIIIIOOOONNNN DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNNSSSS
- iiiiffffllllTTTTiiiilllleeee2222DDDD(((())))
-
- iflTile2D<type>()
- iflTile2D<type>(type X, type Y, type nX, type nY)
- iflTile2D<type>(const iflTile2D& that)
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-
-
-
- iiiiffffllllTTTTiiiilllleeee((((3333)))) IIIImmmmaaaaggggeeee FFFFoooorrrrmmmmaaaatttt LLLLiiiibbbbrrrraaaarrrryyyy CCCC++++++++ RRRReeeeffffeeeerrrreeeennnncccceeee MMMMaaaannnnuuuuaaaallll iiiiffffllllTTTTiiiilllleeee((((3333))))
-
-
-
- iflTile2D<type>(const iflTile2D<type>& a, const iflTile2D<type>& b)
- iflTile2D<type>(const iflTile2D<type>& a, const iflTile2D<type>& b,
- const iflTile2D<type>& c)
-
-
- The first version with no arguments constructs an uninitialized
- iflTile2D. The second version constructs an iflTile2D with the
- origin set to (_X,_Y) and the size set to (_n_X,_n_Y). The third version
- constructs a copy of another 2D tile. The fourth version constructs
- an iflTile2D whose origin and size are set to the intersection of
- the tiles specified by _a and _b. The final version constructs an
- iflTile2D whose origin and size are set to the intersection of the
- tiles specified by _a, _b and _c.
-
- bbbboooouuuunnnnddddiiiinnnnggggBBBBooooxxxx(((())))
-
- iflTile2D<type>& boundingBox(const iflTile2D<type>& a,
- const iflTile2D<type>& b)
- iflTile2D<type>& boundingBox(const iflTile2D<type>& a,
- const iflTile2D<type>& b,
- const iflTile2D<type>& c)
-
-
- The first version sets this object's origin and size to the
- intersection of the tiles specified by _a and _b. The second version
- sets this object's origin and size to the intersection of the tiles
- specified by _a, _b and _c. The returned value is a reference to this
- object.
-
- ccccoooonnnnttttaaaaiiiinnnnssss(((())))
-
- int contains(type X, type Y) const
- int contains(const iflTile2D<type>& tile) const
- int contains(const iflTile2D<type>& tile,
- type xMax, type yMax) const
-
-
- This function returns true if this object contains the point
- specified by (_X,_Y). The second version returns true if this object
- completely contains the iflTile2D specified by _t_i_l_e. The third
- version allows _t_i_l_e to be first clipped by the maximum bounds
- specified by _x_M_a_x and _y_M_a_x before checking for containment.
-
- ggggrrrroooowwww(((())))
-
- void grow(const iflXY<type>& delta)
-
-
- Increase the size of the tile by the amount specified in _d_e_l_t_a.
-
-
-
-
-
-
- PPPPaaaaggggeeee 3333
-
-
-
-
-
-
- iiiiffffllllTTTTiiiilllleeee((((3333)))) IIIImmmmaaaaggggeeee FFFFoooorrrrmmmmaaaatttt LLLLiiiibbbbrrrraaaarrrryyyy CCCC++++++++ RRRReeeeffffeeeerrrreeeennnncccceeee MMMMaaaannnnuuuuaaaallll iiiiffffllllTTTTiiiilllleeee((((3333))))
-
-
-
- iiiinnnniiiitttt(((())))
-
- iflTile2D<type>& init(type X, type Y, type nX, type nY)
- iflTile2D<type>& init(const iflTile2D<type>& tile)
-
-
- The first version initializes this object with the origin set to
- (_X,_Y) and the size set to (_n_X,_n_Y). The second version initializes
- this object with a copy of the 2D tile specified by _t_i_l_e.
-
- iiiinnnntttteeeerrrrsssseeeecccctttt(((())))
-
- iflTile2D<type>& intersect(const iflTile2D<type>& a,
- const iflTile2D<type>& b)
- iflTile2D<type>& intersect(const iflTile2D<type>& a,
- const iflTile2D<type>& b,
- const iflTile2D<type>& c)
-
-
- The first version initializes this object with the origin and size
- set to the intersection of the tiles specified by _a and _b. The
- second version initializes this object with the origin and size set
- to the intersection of the tiles specified by _a, _b and _c.
-
- ooooppppeeeerrrraaaattttoooorrrr========
-
- int operator==(const iflTile2D<type>& tile) const
-
-
- Returns TRUE if _t_i_l_e is the same as 'this' tile, FALSE otherwise.
-
- ooooppppeeeerrrraaaattttoooorrrr!!!!====
-
- int operator!=(const iflTile2D<type>& tile) const
-
-
- Returns TRUE if _t_i_l_e is not the same as 'this' tile, FALSE
- otherwise.
-
- ooooppppeeeerrrraaaattttoooorrrr++++====
-
- void operator+=(const iflXY<type>& offset) const
-
-
- Shift the origin of the tile by adding to it the amount specified in
- _o_f_f_s_e_t.
-
- ooooppppeeeerrrraaaattttoooorrrr----====
-
- void operator-=(const iflXY<type>& offset) const
-
-
-
-
-
- PPPPaaaaggggeeee 4444
-
-
-
-
-
-
- iiiiffffllllTTTTiiiilllleeee((((3333)))) IIIImmmmaaaaggggeeee FFFFoooorrrrmmmmaaaatttt LLLLiiiibbbbrrrraaaarrrryyyy CCCC++++++++ RRRReeeeffffeeeerrrreeeennnncccceeee MMMMaaaannnnuuuuaaaallll iiiiffffllllTTTTiiiilllleeee((((3333))))
-
-
-
- Shift the origin of the tile by subtracting from it the amount
- specified in _o_f_f_s_e_t.
-
- sssshhhhrrrriiiinnnnkkkk(((())))
-
- void shrink(const iflXY<type>& delta)
-
-
- Decrease the size of the tile by the amount specified in _d_e_l_t_a.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 5555
-
-
-
-